package com.zingrow.web.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zingrow.web.user.mapper.UserModelSchemeMapper;
import com.zingrow.web.user.model.UserModelScheme;
import com.zingrow.web.user.service.IUserModelSchemeService;

@Service
public class UserModelSchemeService implements IUserModelSchemeService {

	@Autowired
	private UserModelSchemeMapper userModelSchemeMapper;

	@Override
	public boolean insert(UserModelScheme userModel) {
		
		return userModelSchemeMapper.insert(userModel)>0;
	}

	@Override
	public boolean delete(Integer userId) {
		return userModelSchemeMapper.delete(userId)>0;
	}

	  //根据用户ID查询
	@Override
	public List<UserModelScheme> selectid(Integer userId){
		return userModelSchemeMapper.selectid(userId);
	}
}
